package models

import (
	"github.com/goravel/framework/database/orm"
)

type Car struct {
	orm.Model
	Serial      string `gorm:"column:serial" form:"serial" json:"serial"`
	KindID      uint   `gorm:"column:kind_id" form:"kind_id" json:"kind_id"`
	Inspection  string `gorm:"column:inspection" form:"inspection" json:"inspection"`
	Maintenance string `gorm:"column:maintenance" form:"maintenance" json:"maintenance"`
	State       string `gorm:"column:state" form:"state" json:"state"`
	Kind        Kind   `gorm:"foreignKey:KindID;references:ID" form:"kind" json:"kind"`
	orm.SoftDeletes
}
